package com.hqj.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 王建林
 * @version 1.0
 * @date 2020/10/12
 */
@Data
@TableName("blogs_table")
@ApiModel("博客类")
public class BlogsTables {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("描述/简介")
    private String description;
    @ApiModelProperty("创建时间")
    private Date createBy;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("观看次数")
    private Integer watched;
    @ApiModelProperty("评论数")
    private Integer discuss;
    @ApiModelProperty("点赞数")
    private Integer likes;
    @ApiModelProperty("封面地址")
    private String coverUrl;
    @ApiModelProperty("0原创1转载")
    private Integer writeCode;
    @ApiModelProperty("0表示未删除1表示已删除")
    private Integer isDetele;
    @ApiModelProperty("分类编号")
    private Integer classifyCode;
    @ApiModelProperty("分类名称")
    private String classifyName;
}
